<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        //固定写法，效果与静态一样
        window.onload=function (){
            alert("动态注册！")
        }
    </script>
</head>
<body>

</body>
</html>